/* ==========================================================================
   WHALES COMMAND CENTER — ULTRA-FIDELITY CINEMATIC LOGIN
   Matches the exact reference mockup media_1790430047716.jpg
   ========================================================================== */

/* Hide default topbar and unnecessary layout elements on login page */
body[data-page="login"] > .topbar,
body[data-page="login"] > .mobile-menu-panel,
body[data-page="login"] > .skip-link,
body[data-page="login"] .wcc-foot {
    display: none !important;
}

body[data-page="login"] {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #030712;
    font-family: Tajawal, Barlow, system-ui, -apple-system, sans-serif;
    color: #f8fafc;
}

/* Page Root Wrapper */
.whales-cinema-page {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Background Scene with Ambient Overlays */
.whales-cinema-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.whales-cinema-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
    transition: transform 0.6s ease-out;
}

.whales-cinema-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(3, 7, 18, 0.25) 0%, rgba(3, 7, 18, 0.7) 100%),
                linear-gradient(180deg, rgba(3, 7, 18, 0.6) 0%, rgba(3, 7, 18, 0.2) 40%, rgba(3, 7, 18, 0.5) 100%);
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Top Navigation Bar
   -------------------------------------------------------------------------- */
.whales-topbar {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 44px;
    width: 100%;
    box-sizing: border-box;
}

.whales-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.whales-brand:hover {
    transform: translateY(-1px);
}

.whales-tail-logo {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.7));
}

.whales-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.whales-brand-title {
    font-family: Rajdhani, Barlow, sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 3.5px;
    color: #ffffff;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.4);
}

.whales-brand-subtitle {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #38bdf8;
    margin-top: 2px;
}

.whales-top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.whales-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9999px;
    padding: 7px 16px;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s ease;
    cursor: pointer;
}

.whales-action-pill:hover {
    background: rgba(30, 41, 59, 0.75);
    border-color: rgba(56, 189, 248, 0.5);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.whales-action-circle {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
}

.whales-chevron {
    font-size: 10px;
    opacity: 0.7;
    margin-inline-start: 2px;
}

/* --------------------------------------------------------------------------
   Main 3-Column Grid
   -------------------------------------------------------------------------- */
.whales-main-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 32px;
    padding: 0 44px 32px 44px;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    box-sizing: border-box;
    flex: 1;
}

/* --------------------------------------------------------------------------
   Left Column: Hero Typography & 4 Feature Cards
   -------------------------------------------------------------------------- */
.whales-col-left {
    max-width: 440px;
    display: flex;
    flex-direction: column;
}

.whales-kicker {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #94a3b8;
    margin-bottom: 12px;
    opacity: 0.9;
}

.whales-hero-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 14px 0;
    display: flex;
    flex-direction: column;
    letter-spacing: -0.5px;
}

.whales-cyan-glow {
    color: #38bdf8;
    background: linear-gradient(135deg, #7dd3fc 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(14, 165, 233, 0.5);
}

.whales-hero-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0 0 24px 0;
    max-width: 380px;
}

.whales-feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.whales-feature-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(8, 20, 38, 0.62);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 14px;
    padding: 10px 14px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
}

.whales-feature-card:hover {
    background: rgba(12, 28, 52, 0.75);
    border-color: rgba(56, 189, 248, 0.5);
    transform: translateX(4px);
    box-shadow: 0 6px 24px rgba(56, 189, 248, 0.2);
}

[dir="rtl"] .whales-feature-card:hover {
    transform: translateX(-4px);
}

.whales-feat-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(2, 132, 199, 0.08) 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-size: 16px;
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.3);
}

.whales-feat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.whales-feat-info strong {
    font-size: 14px;
    font-weight: 700;
    color: #f1f5f9;
}

.whales-feat-info small {
    font-size: 12px;
    color: #94a3b8;
}

/* --------------------------------------------------------------------------
   Center Column: Glowing Neon Glass Login Card
   -------------------------------------------------------------------------- */
.whales-col-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.whales-login-neon-card {
    position: relative;
    width: 100%;
    max-width: 410px;
    border-radius: 26px;
    background: rgba(7, 18, 36, 0.68);
    border: 2px solid rgba(56, 189, 248, 0.72);
    box-shadow: 0 0 35px rgba(56, 189, 248, 0.4),
                0 0 80px rgba(14, 165, 233, 0.2),
                inset 0 0 20px rgba(56, 189, 248, 0.12);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    padding: 32px 30px;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease;
}

.whales-login-neon-card:hover {
    box-shadow: 0 0 45px rgba(56, 189, 248, 0.55),
                0 0 95px rgba(14, 165, 233, 0.25),
                inset 0 0 25px rgba(56, 189, 248, 0.18);
}

/* Card Header inside Login Box */
.whales-form-header {
    text-align: center;
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.whales-card-logo {
    width: 42px;
    height: 42px;
    filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.9));
    margin-bottom: 6px;
}

.whales-card-brand {
    font-family: Rajdhani, Barlow, sans-serif;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #ffffff;
}

.whales-card-subbrand {
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #38bdf8;
    margin-bottom: 14px;
}

.whales-card-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.whales-card-subtitle {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

/* Form Inputs */
.whales-field-group {
    margin-bottom: 14px;
    text-align: start;
}

.whales-field-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.whales-input-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 12px;
    padding: 0 14px;
    height: 48px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.whales-input-box:focus-within {
    border-color: #38bdf8;
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.whales-input-icon {
    color: #94a3b8;
    font-size: 15px;
    flex-shrink: 0;
    margin-inline-end: 10px;
}

.whales-input-box input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 13.5px;
    font-family: inherit;
}

.whales-input-box input::placeholder {
    color: #64748b;
}

.whales-eye-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: color 0.2s;
}

.whales-eye-btn:hover {
    color: #38bdf8;
}

.whales-field-group .invalid-feedback {
    font-size: 11.5px;
    color: #ef4444;
    margin-top: 4px;
    display: block;
}

/* Remember & Forgot Password Row */
.whales-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 14px 0 18px 0;
    font-size: 12.5px;
}

.whales-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    cursor: pointer;
    user-select: none;
}

.whales-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0284c7;
    cursor: pointer;
}

.whales-forgot-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s;
}

.whales-forgot-link:hover {
    color: #38bdf8;
    text-decoration: underline;
}

/* Submit Button */
.whales-submit-btn {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(90deg, #0284c7 0%, #06b6d4 100%);
    box-shadow: 0 0 24px rgba(6, 182, 212, 0.55),
                inset 0 1px 1px rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.whales-submit-btn:hover {
    background: linear-gradient(90deg, #0369a1 0%, #0891b2 100%);
    box-shadow: 0 0 32px rgba(6, 182, 212, 0.75);
    transform: translateY(-1px);
}

.whales-submit-btn:active {
    transform: translateY(0);
}

/* Divider */
.whales-divider {
    position: relative;
    text-align: center;
    margin: 16px 0;
}

.whales-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.whales-divider span {
    position: relative;
    display: inline-block;
    padding: 0 12px;
    background: #081426;
    color: #64748b;
    font-size: 12px;
}

/* Register Footer */
.whales-card-footer {
    text-align: center;
    font-size: 13px;
    color: #cbd5e1;
    margin-top: 4px;
}

.whales-card-footer a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 700;
    margin-inline-start: 6px;
    transition: all 0.2s;
}

.whales-card-footer a:hover {
    color: #7dd3fc;
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

/* --------------------------------------------------------------------------
   Right Column: Floating Market Widgets
   -------------------------------------------------------------------------- */
.whales-col-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

[dir="rtl"] .whales-col-right {
    align-items: flex-start;
}

.whales-market-card {
    width: 215px;
    background: rgba(8, 20, 38, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 16px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}

.whales-mkt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.whales-mkt-symbol {
    font-family: Rajdhani, Barlow, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.whales-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 9999px;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 700;
    color: #22c55e;
}

.whales-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
    animation: whales-pulse 2s infinite;
}

@keyframes whales-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.whales-mkt-price-wrap {
    margin-bottom: 8px;
}

.whales-mkt-price {
    font-family: Rajdhani, Barlow, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
}

.whales-mkt-change {
    font-size: 12px;
    font-weight: 600;
}

.text-up {
    color: #22c55e;
}

.text-dn {
    color: #ef4444;
}

.whales-sparkline-wrap {
    width: 100%;
    height: 52px;
    margin-top: 4px;
}

.whales-sparkline-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Global Markets Widget */
.whales-gm-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #94a3b8;
}

.whales-gm-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.whales-gm-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}

.whales-gm-item span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
    font-weight: 600;
}

.whales-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.dot-green {
    background: #22c55e;
    box-shadow: 0 0 4px #22c55e;
}

.dot-red {
    background: #ef4444;
    box-shadow: 0 0 4px #ef4444;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1240px) {
    .whales-main-grid {
        grid-template-columns: 1fr auto;
        gap: 24px;
    }
    .whales-col-right {
        display: none;
    }
}

@media (max-width: 960px) {
    .whales-topbar {
        padding: 16px 20px;
    }
    .whales-main-grid {
        grid-template-columns: 1fr;
        padding: 0 20px 24px 20px;
    }
    .whales-col-left {
        max-width: 100%;
        text-align: center;
        align-items: center;
        margin-bottom: 20px;
    }
    .whales-hero-title {
        font-size: 34px;
    }
    .whales-feature-list {
        display: none;
    }
    .whales-login-neon-card {
        max-width: 100%;
    }
}
